<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: FT
  Date: 2020/9/17
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>登录</title>
    <style>
        body{
            background-image: url("/img/background.jpg");
            background-size: 100% 100%;
        }
        .box{
            width: 400px;
            height: 400px;
            margin: 300px auto;
        }
        label{
            margin-top: 20px;
            display: inline-block;
            width: 60px;
        }
    </style>
</head>
<body>
    <div class="box">
        <c:if test="${error!=null}">
            <span style="color: red">${error}</span>
        </c:if>
        <form action="${pageContext.request.contextPath}/user/login" method="post">
            <label>用户名</label>
            <input type="text" name="name"><br><br>
            <label>密码</label>
            <input type="password" name="password"><br><br>
            <input type="submit" value="登录">
            <input type="button" onclick="location.href='${pageContext.request.contextPath}/add.jsp'" value="注册">
        </form>
    </div>
</body>
</html>
